package org.madgecko.api.service.iface;

import org.madgecko.api.model.Message;
import org.madgecko.api.model.enumeration.MessageCategory;
import org.madgecko.basic.model.Pager;

import java.util.List;

/**
 * Author       : MadFrog
 * Date         : 2018/11/10 17:59
 * Description  : 消息类的服务接口
 */
public interface IMessageService {
    Message add(Message message);
    void delete(Integer id);
    Message update(Message message);
    Message load(Integer id);
    List<Message> listByCategory(MessageCategory messageCategory);
    Pager<Message> find(MessageCategory messageCategory);
}
